﻿using Mt.Site.Core.AccessStatistics.Entities;
using System;
using System.Collections.Generic;

namespace Mt.Site.Application.AccessStatistics
{
    public interface IVisitStatisticHelper
    {
        string DateToString(DateTime? time);

        string NumberToTime(long lengthOfStay, long pvNum, long outNum);
        double BounceRateCalc(long outNum, long pvNum);

        double AvgVisitNumCalc(long uvNum, long pvNum);
        bool CheckTimeFormat(ref DateTime startTime, ref DateTime endTime);

        List<SortTimeType> CheckTimeSpan(DateTime startTime, DateTime endTime);

        string GetVisitSourceName(SourceType source);
    }
}
